/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2022-02-28 10:41:33
 * @LastEditors: ziwei
 * @LastEditTime: 2022-03-01 10:54:51
 */
class EnvironmentRecords{
    constructor(bindings){
        this.bindings = bindings||{};
    }
    createBinding(N){
        this.bindings[N] = undefined
    }
    setBinding(N,V){
        this.bindings[N] = V
    }
    hasBinding(){
        return N in this.bindings;
    }
    getBindingValue(N){
       let value = this.bindings[N];
       if((value.type === 'let'||value.type === 'const')&&value.uninitialized){
         
       }
        return this.bindings[N]
    }
}

module.exports = EnvironmentRecords;